package com.yztc.yidoutang.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 用来存储主页页面中Banner、CardView和Tab中数据的实体类
 * <p>
 * data : { ...... }
 * error : false
 * message : success
 */
public class ZhuYeBean {

    @SerializedName("data")
    private DataBean data;
    @SerializedName("error")
    private boolean error;
    @SerializedName("message")
    private String message;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        @SerializedName("banner")
        private List<BannerBean> banner;
        @SerializedName("nav")
        private List<TabBean> nav;
        @SerializedName("master")
        private List<CardBean> master;

        public List<BannerBean> getBanner() {
            return banner;
        }

        public void setBanner(List<BannerBean> banner) {
            this.banner = banner;
        }

        public List<TabBean> getNav() {
            return nav;
        }

        public void setNav(List<TabBean> nav) {
            this.nav = nav;
        }

        public List<CardBean> getMaster() {
            return master;
        }

        public void setMaster(List<CardBean> master) {
            this.master = master;
        }
    }
}